<?php
// +----------------------------------------------------------------------
// | 客户端路由
// +----------------------------------------------------------------------

use owns\middleware\ApiAuthMiddleware;
use owns\middleware\ApiMiddleware;
use think\facade\Route;

/**
 * 客户端
 */
Route::group('api', function () {
    //
    Route::get('/', 'api.Index/index'); 
    // 用户登录
    Route::post('member_login', 'memberLogin')->middleware(ApiAuthMiddleware::class); 
    
})->middleware(ApiMiddleware::class);